package com.caocaog.market.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.caocaog.market.entity.GoodsBasic;
import com.caocaog.market.vo.GoodsVo;
import org.jeecg.common.api.vo.Result;

import java.util.List;

/**
 * @Description: 商品表
 * @Author: jeecg-boot
 * @Date:   2021-11-12
 * @Version: V1.0
 */
public interface IGoodsBasicService extends IService<GoodsBasic> {

    IPage<GoodsBasic> queryGoodsBasicPage(Page<GoodsBasic> page, GoodsBasic goodsBasic);

    Result add(GoodsBasic goodsBasic);
    Result update(GoodsBasic goodsBasic);

    GoodsVo getGoodsInfo(String goodsId);

    //送大侠-获取商品详情
    GoodsVo getGoodsInfoForSDX(String goodsId);

    GoodsVo getGoodsInfo(GoodsVo goodsVo);

    List<GoodsVo> getShopOfGoodsPushList(String shopId, Integer limit);

}
